num = 5
if num == 3:  # 判断num的值
    print('boss')
elif num == 2:
    print('user')
elif num == 1:
    print('worker')
elif num < 0:  # 值小于零时输出
    print('error')
else:
    print('roadman')  # 条件均不成立时输出

'''
也有不用elif(else if)
也可以单纯只使用is判断，就是串行往下判断
'''
num = 5
if num == 3:  # 判断num的值
    print('boss')
if num == 2:
    print('user')
if num == 1:
    print('worker')
if num < 0:  # 值小于零时输出
    print('error')
